package com.twu.biblioteca.models;

public class User {
    private String login;
    private String password;
    private String name;
    private String email;
    private String phone;

    public User(String login, String password, String name, String email, String phone) {
        this.login = login;
        this.password = password;
        this.name = name;
        this.email = email;
        this.phone = phone;
    }

    public String getLogin() {
        return login;
    }

    public String getName() {
        return name;
    }

    public String getEmail() {
        return email;
    }

    public String getPhone() {
        return phone;
    }

    public boolean authenticate(String password) {
        return this.password.equals(password);
    }
}
